<script>
export default {
  name: "LoginView",
  data() {
    return {
      telephoneNumber: "",
      verificationCode: "",
    };
  },
};
</script>

<template>
  <div class="login-container">
    <div class="title">教师端登录系统</div>
    <div class="img">
      <img src="../assets/Xnip2022-12-29_09-11-54.jpg" alt="" />
    </div>
    <div class="form-wrap">
      <!-- <h1 class="header">This is an about page尴尬</h1> -->
      <el-input
        class="tel"
        v-model="telephoneNumber"
        placeholder="请输入手机号"
      />
      <el-input
        class="psw"
        v-model="verificationCode"
        placeholder="请输入验证码"
      />

      <el-button class="loginButton" type="primary">登录</el-button>

      <!-- 验证码按钮 -->
      <el-button class="verificationButton" type="primary"
        >发送验证码</el-button
      >

      <!-- 切换账号登陆 -->
      <div class="qieHuan">账号密码登录</div>
    </div>
  </div>
</template>

<style lang="scss" scoped>
.login-container {
  height: 100%;
  background-color: #5974df;
  position: relative;

  .title {
    color: white;
    font-size: 30px;
    font-weight: bolder;
    position: absolute;
    left: 1040px;
    top: 140px;
  }

  img {
    width: 800px;
    height: 600px;
    position: absolute;
    left: 60px;
    top: 60px;
  }

  .form-wrap {
    position: absolute;
    left: 80%;
    top: 50%;
    width: 360px;
    height: 250px;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 80px 50px 80px;

    .psw {
      margin-top: 30px;
    }

    .verificationButton {
      width: 100px;
      float: left;
      position: absolute;
      left: 298px;
      top: 142px;
    }
    .loginButton {
      width: 100%;
      margin-top: 30px;
    }
    .qieHuan {
      color: #5974df;
      text-align: center;
      margin-top: 30px;
    }
  }
}
</style>
